<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<style type="text/css">
    .imagedropshadow {
        padding: 5px;
        border: solid 1px #EFEFEF;
    }
    a:hover img.imagedropshadow {
        border: solid 1px #CCC;
        -moz-box-shadow: 1px 1px 5px #999;
        -webkit-box-shadow: 1px 1px 5px #999;
        box-shadow: 1px 1px 5px #999;
    }
</style>
<body>
    <jsp:include page="header.jsp"></jsp:include>
    <div id="main">
        <div id="slidebar">
            <div id="login">
                <jsp:include page="login.jsp"></jsp:include>
            </div>
            <div id="search">
                <jsp:include page="search.jsp"></jsp:include>
            </div>
            <div id="product">
                <jsp:include page="categorypanel.jsp"></jsp:include>
            </div>
        </div>
        <div id="content">
            <c:set var="show" value="${requestScope.ViewImage}"/>
            <c:forEach var="show" items="${show}">
                <form id="form1" name="form1" method="post" action="TriController">
                    <table width="382" border="0">
                        <tr>
                            <td><p>
                                    <a href="TriController?action=Vote&txtImage=Images/${show.image}&txtInfoImage=${show.infoImage}&txtIdImgContest=${show.idImgContest}&txtUsername=<%=session.getAttribute("username").toString()%>">
                                        <img class="imagedropshadow" src="Images/${show.image}" width="200" height="150" /></a>

                                    <%--       <input type="hidden" name="txtImage" value="${show.image}" />
                                            <input type="hidden" name="txtInfoImage" value="${show.infoImage}" />
                                            <input type="hidden" name="txtIdImgContest" value="${show.idImgContest}" />
                                            <input type="hidden" name="txtUsername" value="Tri" />--%>
                                </p>

                                <%--    <input type="text" name="txtIdImgContest" value="${show.idImgContest}" />
                                    <input type="text" name="txtUsername" value="Tri" />--%>
                                <p><a href="TriController?action=Vote&txtImage=Images/${show.image}&txtInfoImage=${show.infoImage}&txtIdImgContest=${show.idImgContest}&txtUsername=<%=session.getAttribute("username").toString()%>">To Vote Please click collection</a></p></td>
                        </tr>
                    </table>
                </form>
            </c:forEach>

        </div>
    </div>
    <div id="footer">

    </div>
</body>
</html>
